module CM0PMTBINTEGRATION #(
     parameter BE        = 0,
     parameter IOP       = 0,
     parameter BASEADDR  = 32'he00ff003,
     parameter AWIDTH    = 12,
	 parameter MPU		 = 8,
     parameter MTB       = 0
)(
	 // CLOCK AND RESETS
     FCLK                           ,
     SCLK                           ,
     HCLK                           ,
     DCLK                           ,
     PORESETn                       ,
     DBGRESETn                      ,
     HRESETn                        ,
     nTRST                          ,
	 // AHB-LITE MASTER PORT
     HADDR                          ,
     HBURST                         ,
     HMASTLOCK                      ,
     HPROT                          ,
     HSIZE                          ,
     HTRANS                         ,
     HWDATA                         ,
     HWRITE                         ,
     HRDATA                         ,
     HREADY                         ,
     HRESP                          ,
     HMASTER                        ,
     SHAREABLE                      ,

	 // AHB-LITE TRACE  PORT
     SRAMBASEADDR                   ,
     HADDRMTB                       ,
     HPROTMTB                       ,
     HSIZEMTB                       ,
     HTRANSMTB                      ,
     HWDATAMTB                      ,
     HSELRAM                        ,
     HSELSFR                        ,
     HWRITEMTB                      ,
     HREADYMTB                      ,
     HRDATAMTB                      ,
     HREADYOUTMTB                   ,
     HRESPMTB                       ,
	 // EMBEDDED SRAM  INTERFACE
     RAMHCLK                        ,
     RAMRD                          ,
     RAMAD                          ,
     RAMWD                          ,
     RAMCS                          ,
     RAMWE                          ,
	 // MTB TRACE CONTROL INTERFACE
     TSTART                         ,
     TSTOP                          ,
	 // CODE SEQUENTIALITY AND SPECULATION
     CODENSEQ                       ,
     CODEHINT                       ,
     SPECHTRANS                     ,
	 // DATA ACCESS HINTS
     DATAHINT                       ,
	 // DEBUG
     SWCLKTCK                       ,
     SWDITMS                        ,
     TDI                            ,
     SWDO                           ,
     SWDOEN                         ,
     SWDETECT                       ,
     TDO                            ,
     nTDOEN                         ,
     DBGRESTART                     ,
     DBGRESTARTED                   ,
     EDBGRQ                         ,
     HALTED                         ,
     NIDEN                          ,
     DBGEN                          ,
	 // MISC
     NMI                            ,
     IRQ                            ,
     TXEV                           ,
     RXEV                           ,
     LOCKUP                         ,//TBD
     SYSRESETREQ                    ,
     STCALIB                        ,
     STCLKEN                        ,
     IRQLATENCY                     ,
     INSTANCEID                     ,
     ECOREVNUM                      ,
     CPUWAIT                        ,
     SLVSTALL                       ,
	 // POWER MANAGEMENT

     GATEHCLK                       ,
     SLEEPING                       ,
     SLEEPDEEP                      ,
     WAKEUP                         ,
     WICSENSE                       ,
     SLEEPHOLDREQn                  ,
     SLEEPHOLDACKn                  ,
     WICENREQ                       ,
     WICENACK                       ,
     CDBGPWRUPREQ                   ,
     CDBGPWRUPACK                   ,
	 // I/O Port
     IOMATCH                        ,
     IORDATA                        ,
     IOTRANS                        ,
     IOWRITE                        ,
     IOCHECK                        ,
     IOADDR                         ,
     IOSIZE                         ,
     IOMASTER                       ,
     IOPRIV                         ,
     IOWDATA                        ,
	 // SCAN IO
     DFTSE                          ,
     DFTRSTDISABLE                  ,
	 // SRPG IO 
     SYSRETAINn                     ,
     SYSISOLATEn                    ,
     SYSPWRDOWN                     ,
     SYSPWRDOWNACK                  ,
     DBGISOLATEn                    ,
     DBGPWRDOWN                     ,
     DBGPWRDOWNACK                  
);
     input FCLK                           ;
     input SCLK                           ;
     input HCLK                           ;
     input DCLK                           ;
     input PORESETn                       ;
     input DBGRESETn                      ;
     input HRESETn                        ;
     input nTRST                          ;
	 // AHB-LITE MASTER PORT
     output HADDR                          ;
     output HBURST                         ;
     output HMASTLOCK                      ;
     output HPROT                          ;
     output HSIZE                          ;
     output HTRANS                         ;
     output HWDATA                         ;
     output HWRITE                         ;
     output HRDATA                         ;
     input HREADY                         ;
     input HRESP                          ;
     input HMASTER                        ;
     input SHAREABLE                      ;

	 // AHB-LITE TRACE  PORT
     input SRAMBASEADDR                   ;
     input HADDRMTB                       ;
     input HPROTMTB                       ;
     input HSIZEMTB                       ;
     input HTRANSMTB                      ;
     input HWDATAMTB                      ;
     input HSELRAM                        ;
     input HSELSFR                        ;
     input HWRITEMTB                      ;
     input HREADYMTB                      ;
     input HRDATAMTB                      ;
     input HREADYOUTMTB                   ;
     input HRESPMTB                       ;
	 // EMBEDDED SRAM  INTERFACE
     input RAMHCLK                        ;
     input RAMRD                          ;
     input RAMAD                          ;
     input RAMWD                          ;
     input RAMCS                          ;
     input RAMWE                          ;
	 // MTB TRACE CONTROL INTERFACE
     input TSTART                         ;
     input TSTOP                          ;
	 // CODE SEQUENTIALITY AND SPECULATION
     input CODENSEQ                       ;
     input CODEHINT                       ;
     input SPECHTRANS                     ;
	 // DATA ACCESS HINTS
     input DATAHINT                       ;
	 // DEBUG
     input SWCLKTCK                       ;
     input SWDITMS                        ;
     input TDI                            ;
     input SWDO                           ;
     input SWDOEN                         ;
     input SWDETECT                       ;
     input TDO                            ;
     input nTDOEN                         ;
     input DBGRESTART                     ;
     input DBGRESTARTED                   ;
     input EDBGRQ                         ;
     input HALTED                         ;
     input NIDEN                          ;
     input DBGEN                          ;
	 // MISC
     input NMI                            ;
     input IRQ                            ;
     input TXEV                           ;
     input RXEV                           ;
     input LOCKUP                         ;//TBD
     input SYSRESETREQ                    ;
     input STCALIB                        ;
     input STCLKEN                        ;
     input IRQLATENCY                     ;
     input INSTANCEID                     ;
     input ECOREVNUM                      ;
     input CPUWAIT                        ;
     input SLVSTALL                       ;
	 // POWER MANAGEMENT

     input GATEHCLK                       ;
     input SLEEPING                       ;
     input SLEEPDEEP                      ;
     input WAKEUP                         ;
     input WICSENSE                       ;
     input SLEEPHOLDREQn                  ;
     input SLEEPHOLDACKn                  ;
     input WICENREQ                       ;
     input WICENACK                       ;
     input CDBGPWRUPREQ                   ;
     input CDBGPWRUPACK                   ;
	 // I/O Port
     input IOMATCH                        ;
     input IORDATA                        ;
     input IOTRANS                        ;
     input IOWRITE                        ;
     input IOCHECK                        ;
     input IOADDR                         ;
     input IOSIZE                         ;
     input IOMASTER                       ;
     input IOPRIV                         ;
     input IOWDATA                        ;
	 // SCAN IO
     input DFTSE                          ;
     input DFTRSTDISABLE                  ;
	 // SRPG IO 
     input SYSRETAINn                     ;
     input SYSISOLATEn                    ;
     input SYSPWRDOWN                     ;
     input SYSPWRDOWNACK                  ;
     input DBGISOLATEn                    ;
     input DBGPWRDOWN                     ;
     input DBGPWRDOWNACK                  ;                 

endmodule
